package com.azt.api.pojo;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.Pattern;

/**
 * Created by LiQZ on 2017/3/14.
 */
public class EntrustReq {

    /**
     * 用户id
     */
    private Integer userId;

    /**
     * 公司名称
     */
    @NotBlank(message = "请填写公司名称")
    private String companyName;

    /**
     * 联系人姓名
     */
    @NotBlank(message = "请填写联系人姓名")
    private String contactName;

    /**
     * 联系人电话
     */
    @NotBlank(message = "请填写联系人电话")
    @Length(max = 25, message = "联系电话输入过长")
    private String contactTel;

    /**
     * 预算
     */
    @Pattern(regexp="(\\s*)|([0-9]*\\.?[0-9]+)", message="请输入正确的预算")
    private String budget;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getContactTel() {
        return contactTel;
    }

    public void setContactTel(String contactTel) {
        this.contactTel = contactTel;
    }

    public String getBudget() {
        return budget;
    }

    public void setBudget(String budget) {
        this.budget = budget;
    }
}
